package com.zxd.threads;

/**
 * ClassName:MainThread
 * Package:com.zxd.threads
 *
 * @Date:2023/9/25 13:45
 * @Author:zxde
 */
public class MainThread {
    //运行main方法的是一个主线程
    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        //使用线程，调用start方法，执行此对象的run方法
        myThread.start();
        for (int i = 0; i < 5; i++) {
            System.out.println("主线程输出   " + i);
        }
    }
}
